# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=tootle
pkgver=1.0
pkgrel=1
pkgdesc="Simple Mastodon client for Linux"
url="https://github.com/bleakgrey/tootle"
# riscv64 disabled due to missing rust in recursive dependency
arch="all !s390x !riscv64" # no libhandy
license="GPL-3.0-or-later"
makedepends="
	glib-dev
	gtk+3.0-dev
	json-glib-dev
	libgee-dev
	libhandy1-dev
	libsoup-dev
	meson
	vala
	"
subpackages="$pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/bleakgrey/tootle/archive/$pkgver.tar.gz
	0001-Adhere-to-GLib.Object-naming-conventions-for-propert.patch
	0002-Use-reason_phrase-instead-of-get_phrase.patch
	0003-make-app-entries-private.patch
"
options="!check"  # no tests

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install -C output
}
sha512sums="
31eadfcc27cff26e8c84ecc56209e8bc9e0f616a9ab32a63208a89875597ecc668ac856a6044533b718c90f4acd286b7f07ca1386d6bb8d259a793e339a3f79d  tootle-1.0.tar.gz
f2c98f02e07bc8d065bee2c959f6339deb82f26ab69ad41de87f7792f1b794d00a817d8e3b02ea2170935eb983c07853c37f9d93eb6b5d2c78cc18f2057d35ca  0001-Adhere-to-GLib.Object-naming-conventions-for-propert.patch
23de63b96506f01dd8619c7c13c8c58e2919fbfe20de531f48714ce017905c4762c3920ec3f7ebae8b42b393f2a751801d09ceb8352656895d55bbe76dc49917  0002-Use-reason_phrase-instead-of-get_phrase.patch
a48e38b287f80bed78a23c7dbc10c9a30dffb0b5d72b70ab14b9e8727e3c6e7234999b5f142d1dbda9c67fff473eb91cdbfd106b03a58e4bb984904cfe59fac2  0003-make-app-entries-private.patch
"
